project( GFLAGS )
cmake_minimum_required( VERSION 2.6 )
set( LOCATION_DIR /opt/local )
set( CMAKE_CXX_FLAGS )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LOCATION_DIR}/lib )
set( CMAKE_INSTALL_PREFIX ${LOCATION_DIR} )
add_definitions( -O2 -Wall )


aux_source_directory( . ICE_GFLAGS_DIR )

add_library( gflags SHARED ${ICE_GFLAGS_DIR} )
set_target_properties( gflags PROPERTIES VERSION 1.0 SOVERSION 1 )

INSTALL ( FILES gflags.h gflags_completions.h config.h mutex.h
    DESTINATION ${LOCATION_DIR}/include/gflags )
